@objectstack/runtime 6.6.0 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +28 -19
package/dist/index.cjs
CHANGED
|
@@ -2247,7 +2247,14 @@ async function createStandaloneStack(config) {
|
|
|
2247
2247
|
const { InMemoryDriver } = await import("@objectstack/driver-memory");
|
|
2248
2248
|
driverPlugin = new DriverPlugin2(new InMemoryDriver());
|
|
2249
2249
|
} else if (dbDriver === "turso") {
|
|
2250
|
-
|
|
2250
|
+
let TursoDriver;
|
|
2251
|
+
try {
|
|
2252
|
+
({ TursoDriver } = await import("@objectstack/driver-turso"));
|
|
2253
|
+
} catch (err) {
|
|
2254
|
+
throw new Error(
|
|
2255
|
+
`[StandaloneStack] libsql/turso URL detected ("${dbUrl}") but @objectstack/driver-turso is not installed. Install it with: npm install @objectstack/driver-turso (or use a file: URL to default to better-sqlite3). (${err?.message ?? err})`
|
|
2256
|
+
);
|
|
2257
|
+
}
|
|
2251
2258
|
driverPlugin = new DriverPlugin2(
|
|
2252
2259
|
new TursoDriver({ url: dbUrl, authToken: dbAuthToken })
|
|
2253
2260
|
);
|
|
@@ -7402,7 +7409,14 @@ async function createDriver(driverType, databaseUrl, authToken) {
|
|
|
7402
7409
|
}
|
|
7403
7410
|
case "libsql":
|
|
7404
7411
|
case "turso": {
|
|
7405
|
-
|
|
7412
|
+
let TursoDriver;
|
|
7413
|
+
try {
|
|
7414
|
+
({ TursoDriver } = await import("@objectstack/driver-turso"));
|
|
7415
|
+
} catch (err) {
|
|
7416
|
+
throw new Error(
|
|
7417
|
+
`[ArtifactEnvironmentRegistry] libsql/turso driver requested but @objectstack/driver-turso is not installed. Install it with: npm install @objectstack/driver-turso. (${err?.message ?? err})`
|
|
7418
|
+
);
|
|
7419
|
+
}
|
|
7406
7420
|
return new TursoDriver({ url: databaseUrl, authToken });
|
|
7407
7421
|
}
|
|
7408
7422
|
case "postgres":
|